var resp_conversion = function (res) {
    var code = 0;
    var message = "success";
    var data = null;

    if ('200' == res.status) {
        data = []
        res.data.forEach(function (element) {
            data.push(element['fields'])
        });
    } else {
        code = status;
        message = res.message;
    }

    return {
        "code": code,
        "msg": message,
        "data": data
    };
}